package com.moon.timetask;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class SayHelloJob  extends QuartzJobBean {

	private ISayHelloService sayHelloService;
	
    protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
        sayHelloService.sayHello();
    }
	
    public ISayHelloService getSayHelloService() {
		return sayHelloService;
	}

	public void setSayHelloService(ISayHelloService sayHelloService) {
		this.sayHelloService = sayHelloService;
	}
	
}
